package com.yuang.redis;

import org.springframework.stereotype.Repository;

@Repository
public class AccountDao {
    public Account getAccountByName(String name) {
        System.out.println("AccountDao.getAccountByName() was called");
        return new Account(1,name,170);
    }

    public Account getAccountByName(int id,String name) {
        System.out.println("AccountDao.AccountDao() was called");
        return getAccountByName(name);
    }

    public void updateAccount(Account account) {
        System.out.println("AccountDao.updateAccount was called");
    }

}
